package com.md.api.service;

import com.md.api.entity.*;
import com.md.api.entity.dto.ComposeQueryDto;
import com.md.api.entity.dto.ProductBuyDto;
import com.md.api.entity.dto.SkuDetailDto;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author liujie
 * @ClassName UserSevice
 * @Date 2022/11/9 11:34
 **/
public interface ProductService {

    HttpResult page( ComposeQueryDto qto);

    HttpResult spuDetail( PdSpu spuo);
    HttpResult skuDetail( HttpServletRequest request,SkuDetailDto dto);

    HttpResult newProduct( PdSpu spu) throws Exception ;

    HttpResult newAttribute( PdAttribute attribute);
    HttpResult newAttributeValue( PdAttributeValue attributeValue);
    HttpResult addShoppingCart(HttpServletRequest request, ShoppingCart shoppingCart);
    HttpResult attributeValueList( String attributeId);

    HttpResult attributeList(PdAttribute attribute);

    HttpResult skuUp( PdSku sku);
    HttpResult skuDown( PdSku sku);

    HttpResult updateBase(PdSku sku);
    HttpResult updateSpuBase(PdSpu spu);

    HttpResult attributeTree(PdAttribute attribute);

    HttpResult recommend(ComposeQueryDto qto);

    HttpResult deleteAttributeValue(PdAttributeValue attributeValue);

    HttpResult deleteAttribute(PdAttribute attribute);
}
